window.z = top.z || {
    ajaxAsync:function(url,param,callBackFun){
        $.ajax({
            url: url,
            data: param,
            async: true,
            notice: false,
            type: 'post',
            dataType: 'json',
            success: function (r) {
                if (r.code === 0 ) {
                    callBackFun = r;
                }else{
                    callBackFun = r;
                    alert(r.info);
                }
            }
        });
    },
    getCodeList:function (code) {
        var codeParam = {"code":code};
        $.ajax({
            type: "POST",
            url: baseURL + "/programa/getByPCode",
            dataType: "json",
            contentType:"application/json",
            data:JSON.stringify(codeParam),
            success: function(r){
                if (r.code === 0 ) {
                    return r.data;
                }else{
                    alert(r.info);
                }
            }
        });
    }
}